Method: \saffire\os.stat()

Signature stat os.stat(string target);

Returns a stat object from the given path. If the path is not found, or an error occurs when trying to fetch the file stat information, an IOException will be thrown.

Arguments

string target
The target path to stat

Returns

stat
A stat class for the given target.

Examples:

stat = os.stat("/bin/sh");
io.println(stat.S_ISREG());
// true